function PlayerSay(ply,text,toall)
	if(string.sub(text,1,2)=="//") then
		return "[OOC]: "..string.Replace(text,"//","")
	elseif(string.sub(text,1,2)=="/y") then
		for k,v in pairs(ents.FindInSphere(ply:GetPos(),600)) do
			if(v:IsPlayer()) then
				v:PrintMessage(HUD_PRINTTALK,ply:Name()..":[YELL]: "..string.Replace(text,"/y",""))
			end
		end
	else
		for k,v in pairs(ents.FindInSphere(ply:GetPos(),300)) do
			if(v:IsPlayer()) then
				v:PrintMessage(HUD_PRINTTALK,ply:Name()..":[Talk]: "..text)
			end
		end
	end
	return ""

end

hook.Add("PlayerSay","chatbinds",PlayerSay)